import Vue from "vue";
import VueRouter from "vue-router";
import Home from "./views/Home.vue";

Vue.use(VueRouter);

const routes = [{
  path: "/",
  redirect: '/init/table'
},{
  path: "/init",
  name: "init",
  component: Home,
  children: [{
    path: "table",
    name: "table",
    component: () => import("./components/section/InitTable.vue")
  },{
    path: "test1",
    name: "test1",
    component: () => import("./components/section/Test1.vue")
  }, {
    path: "test2",
    name: "test2",
    component: () => import("./components/section/Test2.vue")
  }, {
    path: "test3",
    name: "test3",
    component: () => import("./components/section/Test3.vue")
  }]
}];

const router = new VueRouter({
  routes
});

export default router;
